package service;

import bean.Student;
import dao.HouInfoMapper;
import dao.StuInfoMapper;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 李夏
 * @version 1.0
 */
public class StuInfoService {
    public static Integer queryStuAllCount() throws SQLException {
        return StuInfoMapper.queryStuAllCount();
    }

    public static Integer queryHouAllCount() throws SQLException {
        return HouInfoMapper.queryHouAllCount();

    }

    public static Integer getStuOneBuild(Integer buildId) throws SQLException {
        return StuInfoMapper.getStuOneBuild(buildId);
    }

    public static List<Student> getStuOneBuildName(Integer buildId, Integer dormitory) throws SQLException {
        return StuInfoMapper.getStuOneBuildName(buildId,dormitory);

    }
}
